#pragma once

#include "stdafx.h"
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
#include <stdio.h>
#include <math.h>
#include <fstream>

#include "RGBColour.h"

using namespace cv;
using namespace std;

class ImageMethods
{
public:

	//float	r, g, b;

	ImageMethods(void);							//Constructor
	~ImageMethods(void);

	unsigned char ImageMethods::getPixel(IplImage* image, int x, int y);
	RGBColour ImageMethods::getColourPixel(IplImage* image, int x, int y);
	void ImageMethods::setPixel(IplImage* image, int x, int y, unsigned char value);
	void ImageMethods::setColourPixel(IplImage* image, int x, int y, RGBColour& rgb);
	int ImageMethods::compareColourImages(Mat img1, Mat img2);
	int ImageMethods::compareGreyImages(Mat img1, Mat img2);
	int ImageMethods::saveImage(IplImage* img1, String filename);

	
};